<template>
<!-- 轮播图模块 -->
  <div class="box">
    <div class="block">
      <el-carousel trigger="click" height="500px">
        <el-carousel-item v-for="(item,index) in imgSrc" :key="index">
         <img :src="item.src" alt="">
        </el-carousel-item>
     </el-carousel>
   </div>
  </div>
</template>

<script>
export default {
  name:'Shuffling',
  data(){
    return{
      imgSrc:[
        {src:require("@/assets/images/loop-one.jpg")},
        {src:require("@/assets/images/loop-two.jpg")},
        {src:require("@/assets/images/loop-three.jpg")},
        {src:require("@/assets/images/loop-fore.jpg")},
        {src:require("@/assets/images/loop-five.jpg")},
      ]
    }
  }
}
</script>

<style lang="less" scoped>
// @import  '../assets/fonts/iconfont.css';
  * {
        margin: 0;
        padding: 0;
    }
    .box {
        position: relative;
        width: 1200px;
        height: 500px;
        margin: 20px auto;
        overflow: hidden;
    }
 
    /deep/  .el-carousel__item{
      width: 1200px;
      height: 500px;
    }
    .el-carousel__item h3 {
    color: #475669;
    font-size: 14px;
    opacity: 0.75;
    line-height: 150px;
    margin: 0;
    width: 1200px;
    height: 500px;
  }
  .el-carousel__item  img{
    width: 1200px;
     height: 500px;
  }
  .el-carousel__item:nth-child(2n) {
     background-color: #99a9bf;
  }

  .el-carousel__item:nth-child(2n+1) {
     background-color: #d3dce6;
  }
  
</style>












